Jx.declare('Jx.platform.Manager', {
	
	$singleton: true,
	
	$extend: 'Jx.Manager',
	
	$accessors: {

		ns: 'platform',

		defaultType: 'Jx.lib.Engine',
		
		baseType: 'Jx.lib.Engine',
		
		classNameSuffix: 'engine'
		
	},
	
	onCreate: function(operation){
		
		this.$super(arguments);
		
		operation.key = operation.type;
		
	},
	
	isCapable: function(engine){
		
		if ( Jx.isString(engine, true) ){
			
			engine = this.get(engine);
			
		}
		
		return Jx.instanceOf(engine, this.defaultType()) &&
		
			engine.detected.is('capable');
		
	}
	
});
